  /**
   * Generate time : 2016-04-26 16:55:01
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ch.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCHPowercoalStatis 
 * table comment : 公司电厂煤实绩统计 
 */
public class ZMCHPowercoalStatis extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdCurrentDate = " ";		/* 当前日期*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	private String fdReportDepartmentId = " ";		/* 汇报部门ID*/
	private String fdReportDepartment = " ";		/* 汇报部门*/
	private String fdReporterId = " ";		/* 汇报人ID*/
	private String fdReporter = " ";		/* 汇报人*/
	private String fdStaticType = " ";		/* 统计种类*/
	private String fdDepartmentName = " ";		/* 单位名称*/
	private BigDecimal fdDayActual = new BigDecimal("0");		/* 当日实绩*/
	private BigDecimal fdYearTotal = new BigDecimal("0");		/* 年累计*/
	private BigDecimal fdMonthTotal = new BigDecimal("0");		/* 月累计*/
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("汇报部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReporterId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReporter");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStaticType");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("统计种类");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentName");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("单位名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDayActual");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("当日实绩");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYearTotal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("年累计");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthTotal");
	eiColumn.setType("N");
	eiColumn.setScaleLength(5);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("月累计");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCHPowercoalStatis() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	/**
	 * get the fdReportDepartmentId - 汇报部门ID
	 * @return the fdReportDepartmentId
	 */
	public String getFdReportDepartmentId() {
		return this.fdReportDepartmentId;
	}
	
	/**
	 * set the fdReportDepartmentId - 汇报部门ID
	 */
	public void setFdReportDepartmentId(String fdReportDepartmentId) {
		this.fdReportDepartmentId = fdReportDepartmentId;
	}
	/**
	 * get the fdReportDepartment - 汇报部门
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}
	
	/**
	 * set the fdReportDepartment - 汇报部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}
	/**
	 * get the fdReporterId - 汇报人ID
	 * @return the fdReporterId
	 */
	public String getFdReporterId() {
		return this.fdReporterId;
	}
	
	/**
	 * set the fdReporterId - 汇报人ID
	 */
	public void setFdReporterId(String fdReporterId) {
		this.fdReporterId = fdReporterId;
	}
	/**
	 * get the fdReporter - 汇报人
	 * @return the fdReporter
	 */
	public String getFdReporter() {
		return this.fdReporter;
	}
	
	/**
	 * set the fdReporter - 汇报人
	 */
	public void setFdReporter(String fdReporter) {
		this.fdReporter = fdReporter;
	}
	/**
	 * get the fdStaticType - 统计种类
	 * @return the fdStaticType
	 */
	public String getFdStaticType() {
		return this.fdStaticType;
	}
	
	/**
	 * set the fdStaticType - 统计种类
	 */
	public void setFdStaticType(String fdStaticType) {
		this.fdStaticType = fdStaticType;
	}
	/**
	 * get the fdDepartmentName - 单位名称
	 * @return the fdDepartmentName
	 */
	public String getFdDepartmentName() {
		return this.fdDepartmentName;
	}
	
	/**
	 * set the fdDepartmentName - 单位名称
	 */
	public void setFdDepartmentName(String fdDepartmentName) {
		this.fdDepartmentName = fdDepartmentName;
	}
	/**
	 * get the fdDayActual - 当日实绩
	 * @return the fdDayActual
	 */
	public BigDecimal getFdDayActual() {
		return this.fdDayActual;
	}
	
	/**
	 * set the fdDayActual - 当日实绩
	 */
	public void setFdDayActual(BigDecimal fdDayActual) {
		this.fdDayActual = fdDayActual;
	}
	/**
	 * get the fdYearTotal - 年累计
	 * @return the fdYearTotal
	 */
	public BigDecimal getFdYearTotal() {
		return this.fdYearTotal;
	}
	
	/**
	 * set the fdYearTotal - 年累计
	 */
	public void setFdYearTotal(BigDecimal fdYearTotal) {
		this.fdYearTotal = fdYearTotal;
	}
	/**
	 * get the fdMonthTotal - 月累计
	 * @return the fdMonthTotal
	 */
	public BigDecimal getFdMonthTotal() {
		return this.fdMonthTotal;
	}
	
	/**
	 * set the fdMonthTotal - 月累计
	 */
	public void setFdMonthTotal(BigDecimal fdMonthTotal) {
		this.fdMonthTotal = fdMonthTotal;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdReportDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartmentId")), fdReportDepartmentId));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdReporterId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReporterId")), fdReporterId));
		setFdReporter(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReporter")), fdReporter));
		setFdStaticType(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStaticType")), fdStaticType));
		setFdDepartmentName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentName")), fdDepartmentName));
		setFdDayActual(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdDayActual")), fdDayActual));
		setFdYearTotal(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdYearTotal")), fdYearTotal));
		setFdMonthTotal(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMonthTotal")), fdMonthTotal));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdReportDepartmentId",StringUtils.toString(fdReportDepartmentId, eiMetadata.getMeta("fdReportDepartmentId")));	
			map.put("fdReportDepartment",StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));	
			map.put("fdReporterId",StringUtils.toString(fdReporterId, eiMetadata.getMeta("fdReporterId")));	
			map.put("fdReporter",StringUtils.toString(fdReporter, eiMetadata.getMeta("fdReporter")));	
			map.put("fdStaticType",StringUtils.toString(fdStaticType, eiMetadata.getMeta("fdStaticType")));	
			map.put("fdDepartmentName",StringUtils.toString(fdDepartmentName, eiMetadata.getMeta("fdDepartmentName")));	
			map.put("fdDayActual",StringUtils.toString(fdDayActual, eiMetadata.getMeta("fdDayActual")));	
			map.put("fdYearTotal",StringUtils.toString(fdYearTotal, eiMetadata.getMeta("fdYearTotal")));	
			map.put("fdMonthTotal",StringUtils.toString(fdMonthTotal, eiMetadata.getMeta("fdMonthTotal")));	
			
		return map;
	
	}
}